package com.gongpingjialoan.bean;

import java.util.List;

/**
 * Created by Administrator on 2017/9/22.
 */

public class LoanStatusData {
    public static LoanStatusData instance;
    public static LoanStatusData getInstance(){
        if (instance == null){
            instance = new LoanStatusData();
        }
        return instance;
    }
    public static void setInstance(LoanStatusData instance){
        LoanStatusData.instance = instance;
    }
    private String created_at;
    private String updated_at;
    private String mobile;
    private String infos;
    private String province;
    private String city;
    private String name;
    private String identity_card_no;
    private String profession;
    private String income;
    private String house_type;
    private String photo_front;
    private String photo_back;
    private String photo_msg;
    private String credit_limit;
    private String credit_date;
    private String is_marry;
    private String photo_marry;
    private String photo_mate;
    private String status;
    private String status_name;
    private List<OptionsBean> loan_options;

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getInfos() {
        return infos;
    }

    public void setInfos(String infos) {
        this.infos = infos;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdentity_card_no() {
        return identity_card_no;
    }

    public void setIdentity_card_no(String identity_card_no) {
        this.identity_card_no = identity_card_no;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getIncome() {
        return income;
    }

    public void setIncome(String income) {
        this.income = income;
    }

    public String getHouse_type() {
        return house_type;
    }

    public void setHouse_type(String house_type) {
        this.house_type = house_type;
    }

    public String getPhoto_front() {
        return photo_front;
    }

    public void setPhoto_front(String photo_front) {
        this.photo_front = photo_front;
    }

    public String getPhoto_back() {
        return photo_back;
    }

    public void setPhoto_back(String photo_back) {
        this.photo_back = photo_back;
    }

    public String getPhoto_msg() {
        return photo_msg;
    }

    public void setPhoto_msg(String photo_msg) {
        this.photo_msg = photo_msg;
    }

    public String getCredit_limit() {
        float limit = 0f;
        try{
            limit = Float.valueOf(credit_limit);
        }catch (NumberFormatException e){
            e.printStackTrace();
        }
        return (int)Math.rint(limit) + "";
    }

    public void setCredit_limit(String credit_limit) {
        this.credit_limit = credit_limit;
    }

    public String getCredit_date() {
        return credit_date;
    }

    public void setCredit_date(String credit_date) {
        this.credit_date = credit_date;
    }

    public String getIs_marry() {
        return is_marry;
    }

    public void setIs_marry(String is_marry) {
        this.is_marry = is_marry;
    }

    public String getPhoto_marry() {
        return photo_marry;
    }

    public void setPhoto_marry(String photo_marry) {
        this.photo_marry = photo_marry;
    }

    public String getPhoto_mate() {
        return photo_mate;
    }

    public void setPhoto_mate(String photo_mate) {
        this.photo_mate = photo_mate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus_name() {
        return status_name;
    }

    public void setStatus_name(String status_name) {
        this.status_name = status_name;
    }

    public List<OptionsBean> getLoan_options() {
        return loan_options;
    }

    public void setLoan_options(List<OptionsBean> loan_options) {
        this.loan_options = loan_options;
    }

    public static class OptionsBean{
        private String name;
        private String rate;
        private String months;
        private String month_pay;
        private String proportion;
        private String advance;
        private String month_interest;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getRate() {
            return rate;
        }

        public void setRate(String rate) {
            this.rate = rate;
        }

        public String getMonths() {
            return months;
        }

        public void setMonths(String months) {
            this.months = months;
        }

        public String getMonth_pay() {
            return month_pay;
        }

        public void setMonth_pay(String month_pay) {
            this.month_pay = month_pay;
        }

        public String getProportion() {
            return proportion;
        }

        public void setProportion(String proportion) {
            this.proportion = proportion;
        }

        public String getAdvance() {
            return advance;
        }

        public void setAdvance(String advance) {
            this.advance = advance;
        }

        public String getMonth_interest() {
            return month_interest;
        }

        public void setMonth_interest(String month_interest) {
            this.month_interest = month_interest;
        }
    }
}
